ORG 1000

MOV DX,0xFFFF
MOV SI,1200H
MOV AH,0xFF

MOV [1300H],0x00FF

START:
INC DX
MOV AL,[SI]
INC SI
CMP AL,AH             
JNE START

MOV [1100h],DX

HLT